<?php
$cars=array("Volvo","BMW","Toyota");
echo $cars[1];
$cars[2] ="Audi";
       
echo"<pre>";
print_r($cars);
echo count($cars);

echo"<br/>";
foreach($cars as $value){
    echo $value."<br/>";
}

$message=array(
    'pic'=>"img/2.jpg",
    'name'=>"avatar",
    'content'=>"天天好心情11111 <span> (来自火星女神的留言)</span>",
    'sex'=>'male'
);
foreach ($message as $key=> $value){
    echo  $key . '=>' . $value."</br>";
}
?>